<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AlterUserOauthToTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('user_oauth', function (Blueprint $table) {
            /*索引配置--begin*/
            // 删除索引-索引名
            $table->dropUnique('user_oauth_wechat_mp_open_id_unique');
            $table->dropUnique('user_oauth_wechat_app_open_id_unique');
            $table->dropUnique('user_oauth_wechat_web_open_id_unique');
            $table->dropUnique('user_oauth_old_wechat_union_id_unique');
            /*索引配置--end*/
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('user_oauth', function (Blueprint $table) {
            //
        });
    }
}
